﻿package mortal.game.view.daily.view
{
    import Message.DB.Tables.*;
    import com.mui.controls.*;
    import mortal.common.global.*;
    import mortal.game.resource.*;
    import mortal.game.view.common.*;

    public class DailyCopyShowView extends DailyShowBaseView
    {
        private var _copyName:GTextFiled;
        private var _intr:GTextFiled;
        private static var _instance:DailyCopyShowView;

        public function DailyCopyShowView()
        {
            return;
        }// end function

        override public function set data(param1:TDailyViewConfig) : void
        {
            super.data = param1;
            this._copyName.text = _data.name;
            this._intr.text = "    " + _data.description;
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            this._copyName = UIFactory.gTextField("", 162, 149, 220, 20, this, GlobalStyle.textFormatChen.center());
            this._intr = UIFactory.gTextField("", 155, 170, 230, 120, this, GlobalStyle.textFormatlan);
            this._intr.wordWrap = true;
            this._intr.multiline = true;
            this.bgUrl = ImagesConst.DailyCopyBg;
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            super.disposeImpl(param1);
            this._copyName.dispose(param1);
            this._intr.dispose(param1);
            return;
        }// end function

        public static function get instance() : DailyCopyShowView
        {
            if (!_instance)
            {
                _instance = new DailyCopyShowView;
            }
            return _instance;
        }// end function

        public static function get hasInstance() : Boolean
        {
            return _instance != null;
        }// end function

    }
}
